package com.mangguo.tingjian.user.service.impl;

import com.mangguo.tingjian.user.dto.CountResult;
import com.mangguo.tingjian.user.entity.DwUserRegisterApp;
import com.mangguo.tingjian.user.mapper.DwUserRegisterAppMapper;
import com.mangguo.tingjian.user.service.IDwUserRegisterAppService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * app注册用户表 服务实现类
 * </p>
 *
 * @author auto
 * @since 2019-11-23
 */
@Service
@AllArgsConstructor
public class DwUserRegisterAppServiceImpl extends ServiceImpl<DwUserRegisterAppMapper, DwUserRegisterApp> implements IDwUserRegisterAppService {

    private final DwUserRegisterAppMapper dwUserRegisterAppMapper;

    @Override
    public List<CountResult> countUniqueImeiByMonth() {
        return dwUserRegisterAppMapper.countUniqueImeiByMonth();
    }

    @Override
    public List<CountResult> countUniqueImeiByDate(Integer start, Integer end) {
        return dwUserRegisterAppMapper.countUniqueImeiByDate(start, end);
    }
}
